if(layer.alert) {
	window.alert = layer.alert;
}

$(document).ready(function(){
	$('[name="levelHead"]').click(function(){
		var $levelCont = $(this).next('[name="levelCont"]');
		$levelCont.find('[name="levelHead"]').removeClass("active");
//		$levelCont.find('[name="levelCont"]').slideUp();
		
		if($levelCont.is(":hidden")){
			$('[name="levelCont"]').slideUp();
			$(this).removeClass("active");
			$levelCont.slideDown();
		} else {
			$(this).addClass("active");
			$levelCont.slideUp();
		}

		if($levelCont.length == 0) {
			$(this).addClass("active");
			$(this).parent('li').siblings('li').children('[name="levelHead"]').removeClass('active');
		}
	});

	var dataArticleHeight = $('[name="pageArticle1"]').outerHeight();
	$('[name="pageSide1"]').css({"min-height":dataArticleHeight});

});